This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
To debug, what you'll need to do is trace back from the line giving you the error to the place where the bad thing gets set up.
An invalid subscript generally is something like doc.Field(-1); can't have a -1th array element.
How did it get to -1?
In one line, as I recall, you're doing some subtraction; you probably did 0 - 1 (or something similar).
So how did that happen?
Without watching your code run in the debugger, it's kind of hard to do more than suggest you run through the code one line at a time, write down what you think is going to happen and compare it to what actually does happen and then figure out why reality diverged from expectation.
Feedback response number WEBB9H4R7T created by ~Hank Lopvelutergon on 03/11/2014